package com.freesky.common.dao.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_order_shipping")
public class OrderShipping extends Model<OrderShipping> {
    public OrderShipping() {
    }
    public OrderShipping(String orderId) {
        this.orderId = orderId;
    }
    @TableId(type = IdType.INPUT)
    private String orderId;

    private String receiverName;

    private String receiverPhone;

    private String receiverMobile;

    private String receiverState;

    private String receiverCity;

    private String receiverDistrict;

    private String receiverAddress;

    private String receiverZip;

    private Date created;

    private Date updated;
    @Override
    protected Serializable pkVal() {
        return orderId;
    }

}